/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package drinkcounter.util;

import com.google.inject.Inject;
import com.google.inject.Singleton;
import com.google.inject.name.Named;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 *
 * @author Toni
 */
@Singleton
public class StartPageServlet extends HttpServlet{

    @Inject @Named("startpage")
    private String startPageUrl;

    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        resp.sendRedirect(startPageUrl);
    }


}
